import {lazy} from 'react'
let RouterList=[{
    path:'/all',
    component:lazy(()=>import('../page/all.jsx')),
    children:[{
        path:'/all/home',
        component:lazy(()=>import('../page/home.jsx'))
    },{
        path:'/all/classify',
        component:lazy(()=>import('../page/classify.jsx'))
    },{
        path:'/all/order',
        component:lazy(()=>import('../page/order.jsx'))
    },{
        path:'/all/shop',
        component:lazy(()=>import('../page/shop.jsx'))
    },{
        path:'/all/my',
        component:lazy(()=>import('../page/my.jsx'))
    }]
},{
   path:'/detail',
   component:lazy(()=>import('../page/detail.jsx'))
},
{
    path:'/login',
    component:lazy(()=>import('../page/login.jsx'))
 },
{
    from:'/',
    to:'/all/home'
}]
export default RouterList